//
//  UIView+Extension.swift
//  SWweibo
//
//  Created by 杜守鹏 on 16/1/5.
//  Copyright © 2016年 杜守鹏. All rights reserved.
//

import UIKit

extension UILabel {
    
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
    }
    
}

extension UIButton {
    convenience init(textColor: UIColor, fontSize: CGFloat) {
        self.init()
        self.setTitleColor(textColor, forState: UIControlState.Normal)
        self.titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    }
}